﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PermissionAssign.aspx.cs" Inherits="Web.Page.PermissionAssign" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>分配角色权限</title>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../Css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate> 

    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="30">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="15" height="30">
                            <img src="../images/tab_03.gif" width="15" height="30" />
                        </td>
                        <td width="1101" background="../images/tab_05.gif">
                            <img src="../images/311.gif" width="16" height="16" />
                            <span class="STYLE4"><asp:Label ID="lbTitle" runat="server"></asp:Label></span>
                        </td>
                        <td width="1101" background="../images/tab_05.gif">
                                    <img src="../images/311.gif" width="16" height="16" />
                                    <span class="STYLE4">
                                        <asp:Label ID="Label1" runat="server" CssClass="title"></asp:Label>&nbsp;</span><asp:Label
                                            ID="lbResult" runat="server" Font-Size="9pt" ForeColor="#FF3300"></asp:Label>
                                </td>
                        <td width="14">
                            <img src="../images/tab_07.gif" width="14" height="30" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="9" background="../images/tab_12.gif">
                            &nbsp;
                        </td>
                        <td bgcolor="#f3ffe3">
                            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98"
                                onmouseover="changeto()" onmouseout="changeback()">
                                <tr id="list">
                                <td colspan="4" style="background:#FFFFFF; text-align:left;" valign="top">
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="30" 
                                        CellPadding="3" CellSpacing="1" HorizontalAlign="Left" Width="100%" 
                                        DataKeyNames="Id" onrowdatabound="GridView1_RowDataBound">
                                        <Columns>
                                            <asp:BoundField DataField="Id" Visible="False" />

                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="cbAssign" runat="server" Width="10%" AutoPostBack="true" 
                                                        oncheckedchanged="cbAssign_CheckedChanged" />
                                                </ItemTemplate>
                                                <FooterStyle BorderColor="#00CC00" BorderStyle="Solid" />
                                            <HeaderStyle BackColor="#CAE0AC" BorderColor="#00CC00" BorderStyle="Solid" />
                                            <ItemStyle Font-Size="9pt" Width="120px" BorderColor="#00CC00" 
                                                BorderStyle="Solid" CssClass="STYLE2" />
                                            </asp:TemplateField>

                                            <asp:HyperLinkField 
                                                NavigateUrl="PermissionEdit.aspx" ShowHeader="False" DataTextField="Name" HeaderText="名称"
                                                DataNavigateUrlFields="Id" 
                                                DataNavigateUrlFormatString="PermissionEdit.aspx?op=e&amp;id={0}">
                                            <FooterStyle BorderColor="#00CC00" BorderStyle="Solid" />
                                            <HeaderStyle BackColor="#CAE0AC" BorderColor="#00CC00" BorderStyle="Solid" />
                                            <ItemStyle Font-Size="9pt" Width="120px" BorderColor="#00CC00" 
                                                BorderStyle="Solid" CssClass="STYLE2" />
                                            </asp:HyperLinkField>
                                            
                                            <asp:BoundField DataField="Description" HeaderText="备注" >
                                            <HeaderStyle BackColor="#CAE0AC" BorderColor="#00CC00" BorderStyle="Solid" />
                                            <ItemStyle Font-Size="9pt" BorderColor="#00CC00" BorderStyle="Solid" 
                                                 />
                                            </asp:BoundField>
                                        </Columns>
                                        <PagerStyle BorderColor="#00CC00" BorderStyle="None" />
                                    </asp:GridView>
                                </td>
                                </tr>
                                
                            </table>
                        </td>
                        <td width="9" background="../images/tab_16.gif">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="29">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="15" height="29">
                            <img src="../images/tab_20.gif" width="15" height="29" />
                        </td>
                        <td background="../images/tab_21.gif">
       
                        </td>
                        <td width="14">
                            <img src="../images/tab_22.gif" width="14" height="29" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

        </ContentTemplate> 
        </asp:UpdatePanel>

        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <img src="../images/indicator.gif" />&nbsp;&nbsp;正在加载，请稍候 ...
            </ProgressTemplate>
        </asp:UpdateProgress>
    </form>
</body>
</html>
